//
// Created by hps on 24-4-21.
//

#ifndef ADDNOTEDIALOG_H
#define ADDNOTEDIALOG_H

#include "HeadFiles.h"
#include "LineInputer.h"
#include "ChooseOrCancelButton.h"
#include "Config.h"
#include "DataDef.h"
#include "../utils/utils.h"

namespace hps {

class AddNoteDialog: public QDialog{
Q_OBJECT
public:
    AddNoteDialog(AddNoteData* noteData, const std::string& bookPath);
    void init();
    void setUi();
    void rspFunc();
public slots:
    void clickedOk();
    void clickedCansel();
private:
    QVBoxLayout* m_layout;
    AddNoteData* m_noteData;
    std::string m_bookPath;
    // 笔记本名称
    LineInputer* m_bookNameInputer;
    // 笔记名称
    LineInputer* m_noteNameInputer;

    // 确定按钮
    ChooseOrCancelButton* m_opButtons;
};

} // hps

#endif //ADDNOTEDIALOG_H
